<script lang="ts" setup>
import { h, reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '插槽h函数',
    type: 'slot.formItem',
    prop: 'slot2',
    default() {
      return h('div', { style: { color: 'red' } }, '插槽内容')
    }
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
